class Person(object):

    def __new__(cls, *args, **kwargs):
        print('3 __new__被调用执行了，cls的id值为{0}'.format(id(cls)))
        obj = super().__new__(cls)
        print('4 创建的对象的id为：{0}'.format(id(obj)))
        return obj

    def __init__(self, name, age):
        print('5 __init__被调用执行了，self的id值为{0}'.format(id(self)))
        self.name = name
        self.age = age


print('1 object这个类对象的id为：{0}'.format(id(object)))
print('2 Person这个类对象的id为：{0}'.format(id(Person)))

p1 = Person('zs', 20)
print('6 p1这个Person类的实例对象的id：{0}'.format(id(p1)))
